package com.sjlh.centurylianhua.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "purchase_log_info")
public class PurchaseLogInfo {
    @TableId(type= IdType.AUTO)//主键自增
    private Integer id;//进货详情编号
    @TableField(value="productId")
    private Integer productId;//所属商品id
    @TableField(exist = false)//标识非数据库字段
    private String productName;//商品名称（多表连接存放名称）
    @TableField(value="purchaseId")
    private Integer purchaseId;//所属进货日志
    private String unit;//商品单位
    private double price;//单价
    private double subtotal;//小计
    private String standby1;//数量
    private String standby2;
    private String standby3;
}
